const {createProxyMiddleware: proxy} = require('http-proxy-middleware');
// import proxy from 'http-proxy-middleware'
module.exports = function (app) {
  app.use(proxy('/api', {
    target: 'http://evp.51job.com/51job/api/1.0/index.php/yun/index/',
    secure: false,
    changeOrigin: true,
    pathRewrite: {
      '^/api': '/'
    },
  }));
};